{% extends 'base.html' %}

{% block content %}
<h1 class="mb-4">注册</h1>
<form method="post">
    {% csrf_token %}
    <div class="mb-3">
        <label for="{{ form.username.id_for_label }}" class="form-label">用户名</label>
        {{ form.username }}
    </div>
    <div class="mb-3">
        <label for="{{ form.email.id_for_label }}" class="form-label">邮箱</label>
        {{ form.email }}
    </div>
    <div class="mb-3">
        <label for="{{ form.password1.id_for_label }}" class="form-label">密码</label>
        {{ form.password1 }}
    </div>
    <div class="mb-3">
        <label for="{{ form.password2.id_for_label }}" class="form-label">确认密码</label>
        {{ form.password2 }}
    </div>
    <button type="submit" class="btn btn-primary">注册</button>
</form>
{% endblock %}